package com.example.hilt_mvvm_http.respository

import com.example.hilt_mvvm_http.one.Api
import com.example.hilt_mvvm_http.one.model.BaseModel
import com.example.hilt_mvvm_http.one.model.UpdateModel
import com.example.hilt_mvvm_http.two.MallApi
import com.example.hilt_mvvm_http.two.model.AdInfoModel
import com.example.hilt_mvvm_http.two.model.CommonListMallApiModel
import kotlinx.coroutines.flow.flow
import okhttp3.RequestBody
import retrofit2.http.Body
import javax.inject.Inject

class MainRepository @Inject constructor() {
    @Inject
    lateinit var api:Api

    @Inject
    lateinit var mallApi: MallApi


    fun appUpdate() = flow {
        emit(api.appUpdate())
    }

    fun  getAdInfo( body: RequestBody) = flow {
        emit(mallApi.getAdInfo(body))
    }

}